import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const PLAT_IDM_ORG: AppRouteRecordRaw = {
  path: '/plat-idm-org',
  name: 'PlatIdmOrg',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: '组织中心',
    requiresAuth: true,
    icon: 'icon-dashboard',
    order: 0,
  },
  children: [
    {
      path: '/plat-idm-org-dept',
      name: 'PlatIdmOrgDept',
      component: () => import('@/views/plat/idm-org/dept/index.vue'),
      meta: {
        locale: '部门管理',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: '/plat-idm-org-company',
      name: 'PlatIdmOrgCompany',
      component: () => import('@/views/plat/idm-org/company/index.vue'),
      meta: {
        locale: '公司设置',
        requiresAuth: true,
        roles: ['*'],
      },
    },
  ],
};

export default PLAT_IDM_ORG;
